package xuesheng;

public class test {
	public static void main(String[]args) throws Exception {
		student s1 = new student ("小李", 0, "java实验室", "大学物理实验室");
		student s2 = new student ("小张", 0, "计算机网络实验室", "组成原理实验室");
		System.out.println("学生信息：");
		System.out.println(s1);
		System.out.println(s2);
		room r1 = new room("java实验室", "优秀");
		room r2 = new room("大学物理实验室", "及格");
		room r3 = new room("计算机网络实验室", "不及格");
		room r4 = new room("组成原理实验室", "及格");
		System.out.println("教室信息：");
		System.out.println(r1);
		System.out.println(r2);
		System.out.println(r3);
		System.out.println(r4);
		System.out.println("小李清洁结果为" + r1.level + "的实验室:" + s1.room1);
		System.out.println("小李清洁结果为" + r2.level + "的实验室:" + s1.room2);
		System.out.println("小张清洁结果为" + r3.level + "的实验室:" + s2.room1);
		System.out.println("小张清洁结果为" + r4.level + "的实验室:" + s2.room2);
		double result1 = prize.sum(1500, 1000);
		double result2 = prize.sum(500, 1000);
		s1.earning = result1;
		s1.earning = s1.earning * 5;
		s2.earning = result2;
		s2.earning = s2.earning * 5;
		double result3 = prize.jiaoshui(s1.earning);
		double result4 = prize.jiaoshui(s2.earning);
		System.out.println("小李的总收入为：" + s1.earning);
		System.out.println("小李的实际收入为：" + result3);
		System.out.println("小张的总收入为:" + s2.earning);
		System.out.println("小张的实际收入为:" + result4);
	}
}